package com.aaa.hospital.mapper;

import com.aaa.hospital.pojo.domain.Emp;
import com.aaa.hospital.pojo.domain.Login;
import com.aaa.hospital.pojo.domain.Signin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author:张海金
 * Description:T0D0
 * DateTime:2022/1/5 17:51
 **/

public interface LoginMapper {

    Login isLogin(@Param("username") String username, @Param("password") String password);

    int updatepassword(@Param("id") Integer id, @Param("password") String password, @Param("newpassword") String newpassword);


    Signin signin(@Param("zhanghao") String zhanghao, @Param("mima") String mima);


    List<Emp> listInfo(Emp emp);

    int addAccount(Login login);

    long upDate(String getDate);

    long upStringDate(String getDateDay);

    long updateDate(String getDate,String getDateDay);

    int logout(Integer ger);

    String getzhanghao(String username);
}
